﻿@using ModalDownload.Models;
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<ModelTable> list = ModelTable.GetModels(ViewBag.Page, ViewBag.PageSize, ViewBag.Type, ViewBag.Cat);
}
@Styles.Render("~/Content/Home_List.css")
<table class="tou00" width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td><table width="990" border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <td class="tou02""><div class="kuang01">
                  <div class="kuang02">
                    <div class="kuang03"> 
                      <!-- 966*100 -->
                      <table width="966" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td>
                                @*列表页顶部条形广告1*@
                                @ADTable.GetADCode("6")
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div></td>
            </tr>
            <tr>
              <td class="tou03"><table width="978" border="0" cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                      <td width="370"><div class="kuang01">
                          <div class="kuang02">
                            <div class="kuang03"> 
                                @*列表页顶部广告1*@
                                @ADTable.GetADCode("7")
                            </div>
                          </div>
                        </div></td>
                      <td class="touad01" width="608"><div class="kuang01">
                          <div class="kuang02">
                            <div class="kuang03"> 
                                @*列表页顶部广告2*@
                                @ADTable.GetADCode("8")
                            </div>
                          </div>
                        </div></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td class="zhong01"><!--中间头 -->
    <table width="978" border="0" cellspacing="0" cellpadding="0">

      <tbody><tr>
        <td align="center" valign="top">
<div class="kuang01"><div class="kuang02">
<table width="620" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td height="35" align="center" valign="middle" class="lm-mc">@(ViewBag.Title)下载</td>
  </tr>
  <tr>
    <td align="center" valign="top" class="lm-nr"><table width="620" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td align="center"><a href="/Home/Buy" target="_blank"><b style="color:#FF3300; font-size:13px">赞助本站288元，可以获取3D模型，素材贴图，VR材质，三个栏目全部内容。无需下载，省力，省速，省时间。三万个模型，三万张贴图，全部压制到光盘送到您家。</b></a></td>
  </tr>
</tbody></table>

<table width="620" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td align="center" valign="middle">
        @for(int i=0;i<list.Count;i++)
        {
            ModelTable model=list[i];
            <table class="tpbt" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td height="134" align="center" valign="middle"><a href="/Home/Detail/@(model.ID)" title="@(model.title)" target="_blank"><img width="160px" height="120px" src="/Images/Upload/@(model.imagefilename)"></a></td>
                    </tr>
                    <tr>
                        <td height="30" align="center" valign="middle"><a href="/Home/Detail/@(model.ID)" target="_blank">
                                @if(model.title.Length>11)
                                {
                                     @(model.title.Substring(0,11))@:...
                                }
                                else
                                {
                                    @(model.title)
                                }</a></td>
                    </tr>
                </tbody>
            </table>
            if ((i+1) % 9 == 0)
            {
                @:</td></tr>
                if ((i + 1) < list.Count)
                {
                    <tr>
                        <td height="80" align="center" valign="middle">
                            @if((i+1)==9)
                            {
                                @*列表页中部条形广告1*@
                                @ADTable.GetADCode("9")
                            }
                            else
                            {
                                @*列表页中部条形广告2*@
                                @ADTable.GetADCode("10")
                            }
                        </td>
                    </tr>
                    @:<tr><td align="center" valign="middle">
                }
            }
        }
<tr>
    <td align="center" valign="middle">
<table width="600" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tbody><tr>
<td align="center" valign="middle">
总数：<b>@ViewBag.Total</b>&nbsp;&nbsp;&nbsp;&nbsp;
    @if (ViewBag.Page==1){
        @:首页&nbsp;&nbsp;&nbsp;&nbsp;上一页
    }
    else
    {
        @Html.ActionLink("首页", "List", "Home", new { type=ViewBag.Type,cat=ViewBag.Cat,page="1"},null)
        @:&nbsp;&nbsp;&nbsp;&nbsp
        @Html.ActionLink("上一页", "List", "Home", new { type=ViewBag.Type,cat=ViewBag.Cat,page=(ViewBag.Page-1)},null) 
    }
            &nbsp;&nbsp;&nbsp;&nbsp;
    @if (ViewBag.PageLength == ViewBag.Page)
    {
        @:下一页&nbsp;&nbsp;&nbsp;&nbsp;尾页
    }
    else
    {
        @Html.ActionLink("下一页", "List", "Home", new { type=ViewBag.Type,cat=ViewBag.Cat,page=(ViewBag.Page+1)},null)
        @:&nbsp;&nbsp;&nbsp;&nbsp
        @Html.ActionLink("尾页", "List", "Home", new { type=ViewBag.Type,cat=ViewBag.Cat,page=ViewBag.PageLength},null) 
    }
    &nbsp;&nbsp;&nbsp;&nbsp;页: <b><font color="red">@ViewBag.Page</font>/@ViewBag.PageLength</b><div class="fyad">
<a href="/Home/Mail" target="_blank"><b style="color:#FF3300; font-size:13px">邮件订阅，订阅后 发送各版本设计软件到你邮箱里，3dmax8-3dmax2012，以及各版本VRAY，32位64位，CAD,PS下载，另外还赠送一套4000像素的木纹贴图，和一套精美光域网，以后找3D,VR等设计软件下载只需打开自己邮箱即可。</b></a>
</div>
</td></tr></tbody></table>
</td>
  </tr>
</tbody></table>
</td>
  </tr>
</tbody></table>
</div></div></td>
        <td width="312" align="center" valign="top" class="zhong02">
<table width="312" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td>	
<div class="kuang01"><div class="kuang02"><div class="kuang03">
<div class="kuang04">@(ViewBag.Parent)栏目导航</div>

<table width="300" border="0" cellspacing="0" cellpadding="0">
  <tbody>
      @foreach (ClassTable ct in ClassTable.GetAllParentClass(ViewBag.Type))
      {
          <tr>
              <td width="40" class="lm02"><b>@Html.ActionLink(@ct.classname.Replace("3D模型", "").Replace("3D", "").Replace("常用", "").Replace("用具", "").Replace("品", "").Replace("贴图", "").Replace("材质", "").Replace("底纹", "").Replace("天然", "").Replace("分类", ""), "List", "Home", new { type=ViewBag.Type,cat=ct.ID},null)</b></td>
              <td class="lm01">
                  @foreach(ClassTable ct1 in ClassTable.GetAllClassByParent(ct.ID))
                  {
                      @Html.ActionLink(@ct1.classname.Replace("综合","").Replace("与","").Replace("品","").Replace("360","").Replace("贴图","").Replace("墙中花瓷砖","墙中花").Replace("意大利瓷砖","意大利").Replace("喜庆-","").Replace("四季",""),"List","Home",new { type=ViewBag.Type,cat=ct1.ID},null)
                  }
              </td>
          </tr>
      }
</tbody></table>
</div>
</div></div></td>
          </tr>

<tr><td class="youad-01">
<div class="kuang01"><div class="kuang02"><div class="kuang03">
    @*列表页右部广告1*@
    @ADTable.GetADCode("11")
</div></div></div></td></tr>
<tr> <td class="youad-01">
<div class="kuang01"><div class="kuang02"><div class="kuang03">
<ins style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><ins id="aswift_0_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px">
                              @*列表页右部广告2*@
                              @ADTable.GetADCode("12")
                              </ins></ins>
</div></div></div>
</td></tr><tr><td class="youad-01">
<div class="kuang01"><div class="kuang02"><div class="kuang03">
<ins style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><ins id="aswift_1_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px">
                              @*列表页右部广告3*@
                              @ADTable.GetADCode("13")
                              </ins></ins>
</div></div></div>
</td></tr><tr><td class="youad-01">
<div class="kuang01"><div class="kuang02"><div class="kuang03">
    @*列表页右部广告4*@
    @ADTable.GetADCode("14")
</div></div></div></td></tr><tr><td class="youad-01">
<div class="kuang01"><div class="kuang02"><div class="kuang03">
<ins style="display:inline-table;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px"><ins id="aswift_1_anchor" style="display:block;border:none;height:250px;margin:0;padding:0;position:relative;visibility:visible;width:300px">
                              @*列表页右部广告5*@
                              @ADTable.GetADCode("15")
                              </ins></ins>
</div>
</div></div></td>
</tr></tbody></table></td></tr></tbody></table>
    <!--头部尾 --></td>
  </tr>
  <tr>
    <td height="10" bgcolor="#111111"></td>
  </tr>
</tbody></table>